<!-- Pagetitle -->
<h1 class="pagetitle">Guias Apagadas</h1>
<%form_for :restaurar, {:url =>'/guias/restaurar'}  do |f| %>
  <div class='tabela'>
    <table>
      <th class="top" scope="col" width="100px">N&ordm; da Guia</th>
      <th class="top" scope="col" width="110px">Data</th>
      <th class="top" scope="col">Nome</th>
      <th class="top" scope="col" width="140px">Opções</th>
      <% for guia in @guias %>
        <tr>
          <td><%=h guia.numeroguiaprincipal %></td>
          <td><%=h guia.dataemissaoguia.to_s_br %></td>
          <td><%=h guia.nomebeneficiario.upcase_br%></td>
          <td>
            <%= f.select guia.id, [["Gerada",0], ["Não Gerada",1]], :prompt => "Selecione..."%>
            <%= link_to(image_tag('magnifier.png',:class=> 'left',:style =>'clear:right;float:right;border:0px;position:absolute;padding-left:20px;'), guia_path(guia))%>
          </td>
        </tr>
      <%end%>
    </table>
    <br/>
    <%=submit_tag 'Restaurar'%>
    <center><%= will_paginate @guias %></center>
  </div>
<%end%>
